package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.ProductGuiGe;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductGuiGeMapper {
    int deleteByPrimaryKey(Integer guigeId);

    int insert(ProductGuiGe record);

    int insertSelective(ProductGuiGe record);
    //根据规格id查询规格
    ProductGuiGe selectByPrimaryKey(@Param("guigeId") Integer guigeId);

    int updateByPrimaryKeySelective(ProductGuiGe record);

    int updateByPrimaryKeyWithBLOBs(ProductGuiGe record);

    int updateByPrimaryKey(ProductGuiGe record);

    //根据商品id查询所有的规格
    List<ProductGuiGe> selectGuigeListByProductId(int productId);
}